package com.systemic.service;

import com.systemic.pojo.GroupInfo;
import com.systemic.pojo.GroupRelation;
import com.systemic.vo.PageVo;
import com.systemic.vo.SearchUser;

import java.util.List;

/**
 * @ClassName: GroupRelationService
 * @Description:
 * @Author:
 * @CreateTime: 2024-02-02 14:57
 * @Version:
 **/
public interface GroupRelationService {

    /**
     * 查看已加入的团体
     * @param pageVo
     * @return
     */
    List<GroupInfo> relationJoin(PageVo pageVo);

    /**
     * 成员列表
     * @param pageVo
     * @return
     */
    List<SearchUser> relationList(PageVo pageVo);

    /**
     * 退出团体
     * @param groupRelation
     * @return
     */
    int relationDelete(GroupRelation groupRelation);
}
